package com.kk.flyweight;

/**
 * @author 王志强
 * @date 2022-01-06
 */
public class ConcreteWebSite extends WebSite {

    /**
     * 网站类型
     */
    private final String type;

    public ConcreteWebSite(String type) {
        this.type = type;
    }

    @Override
    public void use(User user) {
        System.out.println("当前网站类型: " + type + "  user :: " + user.getUsername());
    }
}
